package com.leyou.user.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "tb_delivery_address")
public class DeliveryAddress {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;//id
    private  Long uid;//用户id
    private  String name;//收货人姓名
    private  String  province;//省
    private String city;//市
    private String district;//区
    private String detailAddress;//详细地址
    private String phone;//收货人联系方式
    private String email;//邮箱
    private Boolean isDefault;//是否默认地址
    private Date createTime;
    private Date updateTime;
}
